from copy import deepcopy


def list_func_1():
    param_1 = [1, 2, 3]
    param_2 = param_1
    param_1[1] = 4
    print(param_2)


def object_func_1():
    baiyu = Person("白羽", 18, "杭州")
    # baiyu_fenshen = baiyu  # 浅拷贝
    baiyu_fenshen = deepcopy(baiyu)  # 深拷贝
    baiyu.age = 30
    print(baiyu_fenshen.age)


class Person:
    def __init__(self, name, age, address):
        self.name = name
        self.age = age
        self.address = address


if __name__ == "__main__":
    # list_func_1()
    object_func_1()
